//package com.easylinkin.linkappapi.yysh.controller;
//
//import com.easylinkin.linkappapi.common.model.RequestModel;
//import com.easylinkin.linkappapi.yysh.entity.DataAnalystBean;
//import com.easylinkin.linkappapi.yysh.entity.QueryDataCondition;
//import com.easylinkin.linkappapi.yysh.service.DataAnalystService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.util.Assert;
//import org.springframework.web.bind.annotation.*;
//import site.morn.rest.RestBuilders;
//import site.morn.rest.RestMessage;
//
///**
// * 数据分析Controller
// */
//@RestController
//@RequestMapping("/dataAnalyst")
//public class DataAnalystController {
//
//    @Autowired
//    private DataAnalystService dataAnalystService;
//
//    @PostMapping("selectDataAnalystPage")
//    public RestMessage selectDataAnalystPage(@RequestBody RequestModel<QueryDataCondition> requestModel) {
//        Assert.notNull(requestModel, "requestModel 不能为空");
//        return RestBuilders.successBuilder().data(dataAnalystService.selectDataAnalystPage(requestModel.getPage(), requestModel.getCustomQueryParams())).build();
//    }
//
//    @PostMapping("insertDataAnalystRecord")
//    public RestMessage insertDataAnalystRecord(@RequestBody DataAnalystBean dataAnalystBean) {
//        Assert.notNull(dataAnalystBean, "dataAnalystBean 不能为空");
//        return RestBuilders.successBuilder().data(dataAnalystService.insertDataAnalystRecord(dataAnalystBean)).build();
//    }
//
//    @PostMapping("deleteDataAnalystRecord")
//    public RestMessage deleteDataAnalystRecord(@RequestParam("id") String id) {
//        Assert.notNull(id, "id 不能为空");
//        return RestBuilders.successBuilder().data(dataAnalystService.deleteDataAnalystRecord(id)).build();
//    }
//
//    @PostMapping("updateDataAnalystRecord")
//    public RestMessage updateDataAnalystRecord(@RequestBody DataAnalystBean dataAnalystBean) {
//        Assert.notNull(dataAnalystBean, "dataAnalystBean 不能为空");
//        return RestBuilders.successBuilder().data(dataAnalystService.updateDataAnalystRecord(dataAnalystBean)).build();
//    }
//
//}
